﻿namespace mst_regex
{
    public sealed class GlobalOptions
    {
        private static readonly GlobalOptions _instance = new GlobalOptions();

        private GlobalOptions()
        {
            CsvHasHeader = false;
            CsvDelimiterChar = ',';
            CsvQuoteChar = '"';
            CsvDateFormat = "yyyy-MM-dd";
            IndentSerializedOutput = true;
        }

        public static GlobalOptions Instance
        {
            get { return _instance; }
        }

        public bool CsvHasHeader { get; set; }
        
        public char CsvDelimiterChar { get; set; }

        public char CsvQuoteChar { get; set; }

        public string CsvDateFormat { get; set; }
        
        public bool IndentSerializedOutput { get; set; }
    }
}